<?php
####----------------------------------------------------------------------
#Function de formatage des dates fr->db, db->fr
#
		function fDate($date){
		
	
			$jourDate = strftime("%e", strtotime($date));
			$moisDate = strftime("%m", strtotime($date));
			
			$anneeDate = substr($date,0,4);
			$heure = substr($date,11,2);
			$minutes = substr($date,14,2);

			$construction = mktime($heure, $minutes, 0, $moisDate, $jourDate, $anneeDate);

	
			$jour = array("Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam.");
			$mois = array("","Janvier","F&eacute;vrier","Mars","Avril","Mai","Juin","Juillet","Ao&ucirc;t","Septembre","Octobre","Novembre","D&eacute;cembre");
			$datefr = $jour[date('w', $construction)]." ".strftime("%d", strtotime($date))." ".$mois[date('n', $construction)]." ".$anneeDate. " &agrave; ".$heure.":".$minutes;
	
			
			return utf8_encode($datefr);
		}


?>